﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class ProductCommentsImagesInfoConfig : EntityTypeConfiguration<ProductCommentsImagesInfo>
    {
        public ProductCommentsImagesInfoConfig()
        {
            ToTable("Himall_ProductCommentsImages");
        
            Property(item => item.CommentImage).HasColumnType("varchar").HasMaxLength(1000);
            HasRequired(x => x.Himall_ProductComments).WithMany(x => x.Himall_ProductCommentsImages).HasForeignKey(x => x.CommentId);
        }
    }
}
